<?php
namespace app\common\model;
/**
 * Created by PhpStorm.
 * User: junyv
 * Date: 2016/9/18
 * Time: 10:36
 */
class PosterSpace extends \think\Model
{
    protected $type = [
                        'setting' => 'serialize'
    ];
    public function getTypeAttr($value){
        $type  = $this->typeArr();
        return $type[$value];
    }
    public function typeArr(){
        return $type  = [
            'banner'  => '矩形横幅',
            'couplet' => '对联广告',
            'imagelist' => '图片列表',
            'text' => '文字广告',
            'code' => '代码广告'
        ];
    }
}